package com.cat.decorator;

/**
 * @author cat
 * @version 2025/5/21 17:00
 * @description 炒饭(具体构建角色)
 * @since JDK17
 */

public class FriedRice extends FastFood {
    public FriedRice() {
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
